package com.example.studentregistration.service;

import com.example.studentregistration.pojo.DormBuilding;
import com.example.studentregistration.util.Result;
import com.github.pagehelper.Page;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface DormBuildingService {
    Result<?> insert(DormBuilding building);
    Result<?> update(DormBuilding building);
    Result<?> delete(Integer id);
    int batchDelete(List<Integer> ids);
    Page queryAll(Integer currentPage, Integer pageSize);
    Result<DormBuilding> queryById(Integer id);
    Result<DormBuilding> queryByBuildingNo(String buildingNo);
    // 新增：导出Excel
    void exportExcel(HttpServletResponse response) throws IOException;
}